CloseTextService
TheCloseTextService
function deactivates the active TSM document's association with the specified text service and closes the service component.
FUNCTION CloseTextService (idocID: TSMDocumentID; aComponentInstance: ComponentInstance): OSErr;
idocID
- The identification number of a TSM document created by a prior call to the
New
TSMDocument
function (see page 7-50).aComponentInstance
- The component instance created by a prior call to
OpenTextService
.DESCRIPTION
When a user wants to close an opened text service component, your client application should callCloseTextService
.If the text service component displays a menu, the Text Services Manager removes the menu from the menu bar.
- Note
- This function is for closing text service components other than input methods. Your application does not need to open or close
input methods.![]()
RESULT CODES
noErr No error tsmInvalidDocIDErr The document is not a valid TSM document tsmNoOpenTSErr The component for this document is not open